{*
* 2007-2012 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <contact@prestashop.com>
*  @copyright  2007-2012 PrestaShop SA
*  @version  Release: $Revision: 14011 $
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}

{*************************************************************************************************************************************}
{* IMPORTANT : If you change some data here, you have to report these changes in the ./blockcart-json.js (to let ajaxCart available) *}
{*************************************************************************************************************************************}
{if $ajax_allowed}
<script type="text/javascript">
var CUSTOMIZE_TEXTFIELD = {$CUSTOMIZE_TEXTFIELD};
var customizationIdMessage = '{l s='Customization #' mod='blockcart' js=1}';
var removingLinkText = '{l s='remove this product from my cart' mod='blockcart' js=1}';
</script>
{/if}

<!-- MODULE Block cart -->
<div id="cart_block">

	<div class="block_content">
		<!-- block summary -->
		<div id="cart_block_summary" class="{if isset($colapseExpandStatus) && $colapseExpandStatus eq 'expanded' || !$ajax_allowed || !isset($colapseExpandStatus)}collapsed{else}expanded{/if}">
			<span class="ajax_cart_quantity" {if $cart_qties <= 0}style="display:none;"{/if}>{$cart_qties}</span>
			<span class="ajax_cart_product_txt_s" {if $cart_qties <= 1}style="display:none"{/if}>{l s='products' mod='blockcart'}</span>
			<span class="ajax_cart_product_txt" {if $cart_qties > 1}style="display:none"{/if}>{l s='product' mod='blockcart'}</span>
			<span class="ajax_cart_total" {if $cart_qties <= 0}style="display:none"{/if}>{if $priceDisplay == 1}{convertPrice price=$cart->getOrderTotal(false)}{else}{convertPrice price=$cart->getOrderTotal(true)}{/if}</span>
			<span class="ajax_cart_no_product" {if $cart_qties != 0}style="display:none"{/if}>{l s='(empty)' mod='blockcart'}</span>
		</div>
		<!-- block list of products -->


			<p class="total_quanity"><span class="ajax_cart_quantity">{if $cart_qties <= 0} 0 {else} {$cart_qties} {/if} </span>  {l s="sản phẩm trong giỏ hàng"} </p>
			{if $order_process == 'order'}<a href="{$link->getPageLink("$order_process.php", true)}" class="link_to_cart" title="{l s='Cart' mod='blockcart'}"><img src="{$base_dir}/img/cart.png" /></a>{/if}
			<p id="cart-prices">
				
				{if $show_wrapping}
					{assign var='blockcart_cart_flag' value='Cart::ONLY_WRAPPING'|constant}
					<span>{l s='Wrapping' mod='blockcart'}</span>
					<span id="cart_block_wrapping_cost" class="price cart_block_wrapping_cost">{if $priceDisplay == 1}{convertPrice price=$cart->getOrderTotal(false, $blockcart_cart_flag)}{else}{convertPrice price=$cart->getOrderTotal(true, $blockcart_cart_flag)}{/if}</span>
					<br/>
				{/if}
				{if $show_tax && isset($tax_cost)}
					<span>{l s='Tax' mod='blockcart'}</span>
					<span id="cart_block_tax_cost" class="price ajax_cart_tax_cost">{$tax_cost}</span>
					<br/>
				{/if}
			
				<span id="cart_block_total" class="price ajax_block_cart_total">{$total}</span>
			</p>
			{* if $use_taxes && $display_tax_label == 1 && $show_tax}
				{if $priceDisplay == 0}
					<p id="cart-price-precisions">
						{l s='Prices are tax included' mod='blockcart'}
					</p>
				{/if}
				{if $priceDisplay == 1}
					<p id="cart-price-precisions">
						{l s='Prices are tax excluded' mod='blockcart'}
					</p>
				{/if}
			{/if *}
			<p id="cart-buttons">
				<a href="{$link->getPageLink("$order_process.php", true)}{if $order_process == 'order'}?step=1{/if}" id="button_order_cart" class="exclusive{if $order_process == 'order-opc'}_large{/if}" title="{l s='Check out' mod='blockcart'}">{l s='Check out' mod='blockcart'}</a>
			</p>
	</div>
	<ul class="list-link-right">
			<li class="thuc-don"><a href="{$base_dir}category.php?id_category=4" title="thực đơn">Thực đơn</a></li>
			<li class="bua-an"><a href="#">Bữa ăn<br/>tiêu chuẩn</a></li>
			<li class="san-pham-yeu-thich"><a href="{$base_dir_ssl}modules/blockwishlist/mywishlist.php">Sản phẩm<br/> yêu thích</a></li>
	</ul>
</div>
<!-- /MODULE Block cart -->

